// IMyService.aidl
package com.coocaa.x.service.litedownloader2.aidl;

// Declare any non-default types here with import statements

import com.coocaa.x.service.litedownloader2.aidl.DownloadTask;
import com.coocaa.x.service.litedownloader2.aidl.ILiteDownloadServiceListener;

interface ILiteDownloaderService {
    String getSavePath();

    List<DownloadTask> getList();
    
    int getStatus(in DownloadTask task);
    
    int start(in DownloadTask task);
    int pause(in DownloadTask task);
    int cancel(in DownloadTask task);
    
    void addListener(in ILiteDownloadServiceListener l);
    void removeListener(in ILiteDownloadServiceListener l);
}
